<script type="text/javascript">
window.addEvent('domready', function(){new FormCheck('formular', {
display : {
errorsLocation : 3,
indicateErrors : 2,
flashTips : true,
fadeDuration : 1000
}
})});
</script>

<form class="formular" action="#" method="post" id="formular">
    <fieldset> 				
        <legend>User login</legend> 				
        <label> 					
            <span>Username : </span> 					
            <input type="text" style="width: 350px;" name="user" class="validate['required','length[6,16]','alphanum'] text-input"> 				
        </label>
        <label></label>
        <label> 					
            <span>Password : </span> 					
            <input type="password" style="width: 350px;" name="password" class="validate['required','length[6,-1]'] text-input"> 				
        </label>
        <label></label>
    </fieldset> 			
    <div class="button"><a href="#" class="submit validate['submit']">Log me in</a> 	</div>		
    <hr>
</form>